<?php
namespace BP\Sys;
require_once("BP/En/Map.php");
class EnVerDtl extends EntityMyPK {
	public function getHisUAC () 
	{
		$uac = new UAC();
		$uac->OpenForSysAdmin();
		return $uac;
	}
	public function getEnName () 
	{
		return $this->GetValStringByKey(EnVerDtlAttr::$EnName);
	}
	public function setEnName ($value) // [String value]
	{
		$this->SetValByKey(EnVerDtlAttr::$EnName, $value);
	}
	public function getAttrKey () 
	{
		return $this->GetValStringByKey(EnVerDtlAttr::$AttrKey);
	}
	public function setAttrKey ($value) // [String value]
	{
		$this->SetValByKey(EnVerDtlAttr::$AttrKey, $value);
	}
	public function getEnVerPK () 
	{
		return $this->GetValStringByKey(EnVerDtlAttr::$EnVerPK);
	}
	public function setEnVerPK ($value) // [String value]
	{
		$this->SetValByKey(EnVerDtlAttr::$EnVerPK, $value);
	}
	public function getAttrName () 
	{
		return $this->GetValStringByKey(EnVerDtlAttr::$AttrName);
	}
	public function setAttrName ($value) // [String value]
	{
		$this->SetValByKey(EnVerDtlAttr::$AttrName, $value);
	}
	public function getOldVal () 
	{
		return $this->GetValStringByKey(EnVerDtlAttr::$OldVal);
	}
	public function setOldVal ($value) // [String value]
	{
		$this->SetValByKey(EnVerDtlAttr::$OldVal, $value);
	}
	public function getNewVal () 
	{
		return $this->GetValStringByKey(EnVerDtlAttr::$NewVal);
	}
	public function setNewVal ($value) // [String value]
	{
		$this->SetValByKey(EnVerDtlAttr::$NewVal, $value);
	}
	public function getEnVer () 
	{
		return $this->GetValIntByKey(EnVerDtlAttr::$EnVer);
	}
	public function setEnVer ($value) // [int value]
	{
		$this->SetValByKey(EnVerDtlAttr::$EnVer, $value);
	}
	public function getRDT () 
	{
		return $this->GetValStringByKey(EnVerDtlAttr::$RDT);
	}
	public function setRDT ($value) // [String value]
	{
		$this->SetValByKey(EnVerDtlAttr::$RDT, $value);
	}
	public function getRec () 
	{
		return $this->GetValStringByKey(EnVerDtlAttr::$Rec);
	}
	public function setRec ($value) // [String value]
	{
		$this->SetValByKey(EnVerDtlAttr::$Rec, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_EnVerDtl", "实体修改明细");
		$map->Java_SetEnType($EnType->Dot2Dot);
		$map->IndexField = EnVerDtlAttr::$EnName;
		$map->AddMyPK();
		$map->AddTBString(EnVerDtlAttr::$EnName, NULL, "实体�?",  TRUE ,  FALSE , 0, 200, 30);
		$map->AddTBString(EnVerDtlAttr::$EnVerPK, NULL, "版本主表PK",  FALSE ,  FALSE , 0, 100, 100);
		$map->AddTBString(EnVerDtlAttr::$AttrKey, NULL, "字段",  FALSE ,  FALSE , 0, 100, 1);
		$map->AddTBString(EnVerDtlAttr::$AttrName, NULL, "字段�?",  TRUE ,  FALSE , 0, 200, 30);
		$map->AddTBString(EnVerDtlAttr::$OldVal, NULL, "旧�??",  TRUE ,  FALSE , 0, 100, 30);
		$map->AddTBString(EnVerDtlAttr::$NewVal, NULL, "新�??",  TRUE ,  FALSE , 0, 100, 30);
		$map->AddTBInt(EnVerDtlAttr::$EnVer, 1, "版本�?(日期)",  TRUE ,  FALSE );
		$map->AddTBDateTime(EnVerDtlAttr::$RDT, NULL, "日期",  TRUE ,  FALSE );
		$map->AddTBString(EnVerDtlAttr::$Rec, NULL, "版本�?",  TRUE ,  FALSE , 0, 100, 30);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
